package com.kumi.viewmodel;

/**
 * @author Peter on 2016-07-11.
 */
public class ApiError extends ApiResult {


    private String message;


    public ApiError(String message, int status) {
        super(status);
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * 没通过身份验证
     *
     * @return ApiError
     */
    public static ApiError unAuthenticate() {
        return new ApiError("Authenticate Error", 403);
    }
}
